package com.Nahida.NaHome.activity.settings;

import android.annotation.SuppressLint;
import android.os.Bundle;

import com.Nahida.NaHome.activity.base.RefreshListActivity;
import com.Nahida.NaHome.adapter.SettingsAdapter;
import com.Nahida.NaHome.model.SettingSection;

import java.util.ArrayList;
import java.util.List;

public class SettingPkgActivity extends RefreshListActivity {

    @SuppressLint({"MissingInflatedId", "SetTextI18n", "InflateParams"})
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setPageName("包名设置");

        final List<SettingSection> sectionList = new ArrayList<SettingSection>() {{
            add(new SettingSection("input_string", "原学王桌面包名", "package_jxw", "桌面“学王扫学”的包名", "com.jxw.launcher"));
            add(new SettingSection("input_string", "activity-扫描", "package_act_scan", "学王桌面扫描activity的完整包名，用于跳转", "com.jxw.scanpen.a19.ui.ScanPenActivity"));
            add(new SettingSection("input_string", "activity-设置", "package_act_settings", "学王桌面设置activity的完整包名，用于跳转", "com.jxw.launcher.SPSZActivity"));
            //add(new SettingSection("input_int", "扫描开关键值", "key_scanner", "扫描开关的键值，用于快速跳转", "286"));
        }};

        recyclerView.setHasFixedSize(true);

        SettingsAdapter adapter = new SettingsAdapter(this, sectionList);
        setAdapter(adapter);

        setRefreshing(false);

    }

}